#coding=utf-8
'''
Created on 2016年7月1日
@author: wangpeng
'''
import ConfigParser
Configpath = r'D:\eclipse\luyouqi\src\common\configuration.txt'

def choose_port():                       #设备COM口
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("port", "testport")
        return current

def GetBaudRate():                       #采样率
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("BaudRate", "key")
        return current
    
def Basic_path():                       #采样率
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("basicPath", "key_path")
        return current
    
def entercli():
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("EnterCliCommand", "Key")
        return current

def EnterCliPassword():
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("EnterCliPassword", "Key")
        return current 
    
def ssid_input():
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("SSIDPASSWORD", "ssid")
        return current 

def password_input():
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("SSIDPASSWORD", "password")
        return current 

def Hiwifi_ssid_input():
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("HiWIfi_SSIDPASSword", "ssid")
        return current 
    
def Hiwifi_password_input():
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("HiWIfi_SSIDPASSword", "password")
        return current 
    
def save_report():
    with open(Configpath) as f:
        Conf = ConfigParser.ConfigParser()
        Conf.readfp(f)
        current = Conf.get("save_report", "path")
        return current    
    
